﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Commissioning
{
    [NHibernateEntity(Table = "tmp_early_laps")]
    public class EarlyLapseDetail
    {
        public EarlyLapseDetail() { }

        [PrimaryKey]
        public virtual int Id { get; set; }


        [BelongsTo(Column = "ID_Employee")]
        public virtual Employee Employee { get; set; }

        [BelongsTo(Column = "ID_ContractedBy_Employee")]
        public virtual Employee ContractedBy { get; set; }

        [BelongsTo(Column = "ID_EmployeeOD")]
        public virtual Employee OfficeDirector { get; set; }

        [BelongsTo(Column = "ID_Contract")]
        public virtual Contract Contract { get; set; }


        [BelongsTo(Column = "ID_CommissionCalculation")]
        public virtual CommissionCalculation CommissionCalculation { get; set; }

        [BelongsTo(Column = "ID_Office")]
        public virtual Office Office { get; set; }



        [Property]
        public virtual double? GWP { get; set; }

        [Property]
        public virtual DateTime? SuspensionDate { get; set; }

        [Property]
        public virtual DateTime? FirstUnpaidPremmium { get; set; }

        [Property]
        public virtual int? DaySuspensionAfter { get; set; }

        [Property]
        public virtual int? Status { get; set; }


        [Property]
        public virtual string TypeR { get; set; }

        [BelongsTo(Column = "InitialSucursala")]
        public virtual Office InitialSucursala { get; set; }


    }
}
